using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
public class 原料电弧炉 : DeviceMono
{
    //石墨阴极柱
    public Transform pier_A;
    public Transform pier_B;
    public Transform pier_C;

    public float startPoint_Z = 0;//最高位
    public float endPoint_Z = -0.5f;//最低位
    internal override void DeviceMontoring(string[] dataStrArray)
    {
        if (movement_List.Contains(dataStrArray[0]))
        {

            Debug.Log(transform.name + "动作类消息");
            if (dataStrArray[0] == "10301804" && dataStrArray[1] == "True")//A到顶
            {
                pier_A.DOMoveZ(startPoint_Z, 5f).SetEase(Ease.Linear);
                Debug.Log("A到顶");
            }
            if (dataStrArray[0] == "10301904" && dataStrArray[1] == "True")//B到顶
            {
                pier_B.DOMoveZ(startPoint_Z, 5f).SetEase(Ease.Linear);
                Debug.Log("B到顶");
            }
            if (dataStrArray[0] == "10302204" && dataStrArray[1] == "True")//C到顶
            {
                pier_C.DOMoveZ(startPoint_Z, 5f).SetEase(Ease.Linear);
                Debug.Log("C到顶");
            }
            if (dataStrArray[0] == "10302304" && dataStrArray[1] == "True")//A到底
            {
                pier_A.DOMoveZ(endPoint_Z, 5f).SetEase(Ease.Linear);
                Debug.Log("A到低");
            }
            if (dataStrArray[0] == "10302404" && dataStrArray[1] == "True")//B到底
            {
                pier_B.DOMoveZ(endPoint_Z, 5f).SetEase(Ease.Linear);
                Debug.Log("B到低");
            }
            if (dataStrArray[0] == "10302504" && dataStrArray[1] == "True")//C到底
            {
                pier_C.DOMoveZ(endPoint_Z, 5f).SetEase(Ease.Linear);
                Debug.Log("C到低");
            }
        }
    }
}
